package com.ming.service.impl;

import com.ming.dao.SellerInfoRepository;
import com.ming.pojo.SellerInfo;
import com.ming.service.SellerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**卖家端
 * Created by LIANG on 2018/4/19.
 */
@Service
public class SellerServiceImpl implements SellerService {

    @Autowired
    private SellerInfoRepository sellerInfoRepository;
    /*
    通过卖家端信息，查询对应的信息。
     */
    @Override
    public SellerInfo findSellerInfoByOpenId(String openId) {
        SellerInfo sellerInfo =sellerInfoRepository.findByOpenid(openId);
        return sellerInfo;
    }
}
